export default [
    {
        path: '/agent',
        name: 'agent',
        meta: {
            title: '代理商管理',
            icon: 'team-outlined'
        },
        redirect: '/agent/manage/list',
        component: () => import('@/components/Layout/CommonLayout.vue'),
        children: [
            {
                path: '/agent/manage/list',
                name: 'agent-manage-list',
                meta: {
                    title: '代理商管理',
                    keepAlive: true,
                    icon: 'team-outlined'
                },
                component: () => import('@/views/agent/manage/list.vue'),
            },
            {
                path: '/agent/manage/edit',
                name: 'agent-manage-edit',
                meta: {
                    title: '代理商编辑',
                    // keepAlive: true,
                    // icon: 'team-outlined'
                    toRoute: 'agent-manage-list'
                },
                hidden: true,
                component: () => import('@/views/agent/manage/edit.vue'),
            },
            {
                path: '/agent/manage/detail',
                name: 'agent-manage-detail',
                meta: {
                    title: '代理商详情',
                    // keepAlive: true,
                    // icon: 'team-outlined'
                    toRoute: 'agent-manage-list'
                },
                hidden: true,
                component: () => import('@/views/agent/manage/detail.vue'),
            },
            // {
            //     path: '/agent/material/list',
            //     name: 'agent-material-list',
            //     meta: {
            //         title: '缺料列表',
            //         keepAlive: true,
            //     },
            //     component: () => import('@/views/agent/material/list.vue'),
            // },
            // {
            //     path: '/agent/bill/list',
            //     name: 'agent-bill-list',
            //     meta: {
            //         title: '发单记录',
            //         keepAlive: true,
            //         icon: 'audit-outlined'
            //     },
            //     component: () => import('@/views/agent/bill/list.vue'),
            // },

        ],
    },
];
